package com.jinzecloud.blog.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.jinzecloud.blog.bean.Tag;
import com.jinzecloud.blog.utils.Page;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface TagMapper extends BaseMapper<Tag> {

    void add(@Param("tag") Tag tag);

    void update(@Param("tag") Tag tag);

    void delete(@Param("ids") Integer[] ids);

    Tag getByTagId(@Param("id") Integer id);

    List<Tag> getByIdAll();
}
